package org.sharkness.business.support;

import java.io.Serializable;
import java.util.List;

public interface ModelService<T> extends Serializable {

	public Boolean insert(T obj) throws Exception;
	
	public Boolean update(T obj) throws Exception;
	
	public Boolean delete(T obj) throws Exception;
	
	public Boolean delete(Integer id) throws Exception;

	public Boolean existsById(Serializable id) throws Exception;

	public T getById(Serializable id) throws Exception;
	
	public List<T> list() throws Exception;
	
}